package com.cml.dm.engine.detector;

import java.util.HashMap;
import java.util.Map;

public class DefaultBRStatusDetector implements BRStatusDetector {

    private static final Map<String, Boolean> mStatus = new HashMap<>(64);

    @Override
    public void saveStatus(String orgId) {
        mStatus.put(orgId,true);
    }

    @Override
    public void removeStatus(String orgId) {
        mStatus.remove(orgId);
    }

    @Override
    public boolean processing(String orgId) {
        return mStatus.containsKey(orgId);
    }
}
